/**
 * 
 */
package com.ssi.action;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.ModelDriven;
import com.opensymphony.xwork2.Preparable;
import com.ssi.dao.BoardDao;
import com.ssi.service.BoardService;
import com.ssi.vo.BoardVo;
//implements Preparable,ModelDriven<BoardVo>
public class Board extends ActionSupport {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private BoardVo boardVo;
	
	List<BoardVo> listBoard;
	@Autowired
	private BoardService boardService;
	
	public String execute()throws Exception{
		System.out.println("test gogo ~~~");
		listBoard = boardService.selectList(boardVo);
		
		
		return SUCCESS;
	}
//	@Override
//	public void prepare() throws Exception {
//		boardVo = new BoardVo();
//	}
//
//	@Override
//	public BoardVo getModel() {
//		return boardVo;
//	}
	public List<BoardVo> getListBoard() {
		return listBoard;
	}
	public void setListBoard(List<BoardVo> listBoard) {
		this.listBoard = listBoard;
	}
	
	

	
	
	
	
}
